home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 February / Macworld (1998-02).dmg / Shareware World / Utilities / Powerbook / ClickPad II 2.2.2 Scripting / About ClickPad II Scripting next >
Encoding:
Text File  |  1997-02-22  |  4.5 KB  |  62 lines  |  [ttro/ttxt]

  1. ClickPad II Scripting
  2. AppleScript Support for ClickPad II 2.1 — 2.2
  3.  
  4. Copyright © 1996–1997 Dan Wright
  5.  
  6. The contents of this scripting package (the “ClickPad II Scripting” scripting extension, the example scripts, and this “readme” file) are provided for free to registered users of ClickPad II. Permission to redistribute this package is granted, provided that (1) the entire scripting package is distributed intact and (2) the files are not modified.
  7.  
  8. Requirements
  9.    • PowerBook 520, 540, or 5300
  10.    • a registered copy of ClickPad II version 2.1 or 2.2.x
  11.    • AppleScript
  12.  
  13. Installation
  14. Move the file “ClickPad II Scripting” into the Scripting Additions folder. This folder is located inside your extensions folder:
  15.    :System Folder:Extensions:Scripting Additions
  16.  
  17. If you don’t have this folder, then you probably don’t have AppleScript installed. Look on your system disks/CD or in the “Apple Extras” folder for the AppleScript installer. Install AppleScript and then move “ClickPad II Scripting” into the Scripting Additions folder.
  18.  
  19. That’s it!
  20.  
  21. Dictionary
  22. You can get a list of the available commands and properties from the Script Editor by choosing “Open Dictionary...” and selecting the ClickPad II Scripting file.
  23.  
  24. In the current version, there are two commands:
  25.  
  26. get clickpad property
  27.     returns integer — value of property
  28.  
  29. set clickpad property to integer
  30.     returns boolean — true if the property was successfully changed
  31.  
  32.  
  33. Except where noted, the only values for properties are 0 (off) and 1 (on).
  34. The currently supported properties are:
  35. active — ClickPad II is active (master switch)
  36. make sounds — make clicking sounds
  37. menus stick — menus stick when clicked
  38. popups stick — pop-up menus stick (note: this cannot be turned on unless it was on at boot)
  39. shorter clicks — shorter delay between start and end of clicks
  40. louder — boost sound volume (1 = louder, 0 = normal volume)
  41. button locks — physical TrackPad button begins drag-lock
  42. drag pauses — drags do not terminate immediately when your finger is lifted, allowing you to put your finger back down and continue the drag
  43. flash caps lock — indicator light (LED) on caps lock key is flashed when ClickPad is drag-locked. This feature is only supported by version 2.2 of ClickPad II, and only on machines that have the 5300 US keyboard.
  44.  
  45. volume — get/set the precise click volume. Acceptable values are 0 [silence] through 15 [maximum volume]. The normal  sound level is 3, and the “louder” volume is 8. Note that this is not the machine sound volume, only the click sound volume.
  46. finger movement — pixels of movement permissable during a tap. This feature is only supported by version 2.2 of ClickPad II. Acceptable values are 0 [no movement permitted] through 30. The default value is 3 (for version 2.2) or 5 (for version 2.1 and earlier, although it is not configurable in those versions). Values of zero, or greater than six, are not recommended for general use.
  47. tap time — maximum duration, in 1/60ths of a second, of a tap. This feature is only supported by version 2.2 of Clickpad II. Acceptable values are 5 (1/12th of a second) to 30 (a half-second). It is difficult for most people to tap the TrackPad for less than 1/12th of a second.
  48. intertap time — maximum duration, in 1/60ths of a second, between a tap and the start of the associated drag. This feature is only supported by version 2.2 of ClickPad II. Acceptable values are 5 (1/12th of a second) to 30 (a half-second). 
  49.  
  50. Examples
  51. The example scripts included in this package show how to use these commands to toggle various settings when run.
  52.  
  53. Ideas
  54. • if multiple people use your PowerBook, and each prefers slightly different settings, you can set up scripts for each of them to quickly re-configure ClickPad II without having to bring up the control panel.
  55. • [have other good ideas, or scripts you think other ClickPad II users would be interested in? Send them to me, and I'll make them available on the ClickPad II web site!]
  56.  
  57. Miscellaneous Notes
  58. • changes made to settings via AppleScript are not written to the ClickPad II preferences file, so the current control panel settings will be restored at next startup. However, if you make changes via AppleScript, then open and close the ClickPad II control panels, the changes will be saved.
  59. • this scripting extension will only work with a registered copy of ClickPad II. The current version only works with ClickPad II versions 2.1 and 2.2.x.  Future versions will be backward-compatible (to the extent that that is possible).
  60.  
  61. Web: <http://www.halcyon.com/danwr/smoothie.html>
  62.